home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / cc-head.mak < prev    next >
Makefile  |  1993-05-13  |  4KB  |  136 lines

  1. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, Unix/cc/X11 configuration.
  20.  
  21. # ------------------------------- Options ------------------------------- #
  22.  
  23. ####### The following are the only parts of the file you should need to edit.
  24.  
  25. # ------ Generic options ------ #
  26.  
  27. # Define the installation commands and target directories for
  28. # executables and files.  Only relevant to `make install'.
  29.  
  30. INSTALL = install -c
  31. INSTALL_PROGRAM = $(INSTALL) -m 775
  32. INSTALL_DATA = $(INSTALL) -m 664
  33.  
  34. prefix = /usr/local
  35. exec_prefix = $(prefix)
  36. bindir = $(exec_prefix)/bin
  37. datadir = $(prefix)/lib
  38. gsdatadir = $(datadir)/ghostscript
  39.  
  40. # Define the default directory/ies for the runtime
  41. # initialization and font files.  Separate multiple directories with a :.
  42.  
  43. GS_LIB_DEFAULT=$(gsdatadir):$(gsdatadir)/fonts
  44.  
  45. # Define the name of the Ghostscript initialization file.
  46. # (There is no reason to change this.)
  47.  
  48. GS_INIT=gs_init.ps
  49.  
  50. # Choose generic configuration options.
  51.  
  52. # -DDEBUG
  53. #    includes debugging features (-Z switch) in the code.
  54. #      Code runs substantially slower even if no debugging switches
  55. #      are set.
  56. # -DNOPRIVATE
  57. #    makes private (static) procedures and variables public,
  58. #      so they are visible to the debugger and profiler.
  59. #      No execution time or space penalty.
  60.  
  61. GENOPT=
  62.  
  63. # Define the name of the executable file.
  64.  
  65. GS=gs
  66.  
  67. # ------ Platform-specific options ------ #
  68.  
  69. # Define the other compilation flags.
  70. # Add -DBSD4_2 for 4.2bsd systems.
  71. # Add -DSYSV for System V.
  72. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  73. #   or any System III Unix, or System V release 3-or-older Unix.
  74. #   Add -Xa if your compiler accepts it.
  75. # Add -DSVR4 (not -DSYSV) for System V release 4.
  76. # XCFLAGS can be set from the command line.
  77.  
  78. CFLAGS=-O $(XCFLAGS)
  79.  
  80. # Define platform flags for ld.
  81. # SunOS and some others want -X; Ultrix wants -x.
  82. # SunOS 4.n may need -Bstatic.
  83. # XLDFLAGS can be set from the command line.
  84.  
  85. LDFLAGS=$(XLDFLAGS)
  86.  
  87. # Define any extra libraries to link into the executable.
  88. # ISC Unix 2.2 wants -linet.
  89. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  90. # (Libraries required by individual drivers are handled automatically.)
  91.  
  92. EXTRALIBS=
  93.  
  94. # Define the include switch(es) for the X11 header files.
  95. # This can be null if handled in some other way (e.g., the files are
  96. # in /usr/include, or the directory is supplied by an environment variable).
  97. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  98. # not in $(XINCLUDE).
  99.  
  100. XINCLUDE=-I/usr/local/X/include
  101.  
  102. # Define the directory/ies for the X11 library files.
  103. # This can be null if these files are in the default linker search path.
  104.  
  105. XLIBDIRS=-L/usr/local/X/lib
  106.  
  107. # ------ Devices and features ------ #
  108.  
  109. # Choose the language feature(s) to include.  See gs.mak for details.
  110.  
  111. FEATURE_DEVS=filter.dev dps.dev level2.dev
  112.  
  113. # Choose the device(s) to include.  See devs.mak for details.
  114.  
  115. DEVICE_DEVS=x11.dev
  116. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev ppm.dev ppmraw.dev bit.dev
  117.  
  118. # ---------------------------- End of options --------------------------- #
  119.  
  120. # Define the name of the makefile -- used in dependencies.
  121.  
  122. MAKEFILE=unix-cc.mak
  123.  
  124. # Define the ANSI-to-K&R dependency.
  125.  
  126. AK=ansi2knr$(XE)
  127.  
  128. # Define the compilation rules and flags.
  129.  
  130. CCC=$(SHP)ccgs "$(CC) $(CCFLAGS)"
  131.  
  132. # --------------------------- Generic makefile ---------------------------- #
  133.  
  134. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  135. # is generic.  tar_cat concatenates all these together.
  136.